<template>
	<view class="invite_page">
		<view class="box">
			<view class="content_box">
				<view class="content">
					<view class="name f-w-b">{{userInfo.user.nickName}}</view>
					<view class="sub-title-two u-m-l-16">{{userInfo.user.phone}}</view>
				</view>
				<view class="u-flex sub-title">
					<view>Ta的邀请码：<text class="f-w-b">{{userInfo.invitationCode}}</text></view>
					<view class="u-m-l-20">邀请时间：{{userInfo.inviteAt}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		defineProps,
	} from 'vue'
	import {
		addInterest,
		cancelInterest
	} from '@/api/teacher.js'
	const props = defineProps({
		userInfo: Object,
	})
</script>

<style lang="scss" scoped>
	.invite_page {
		background-color: #fff;
		border-radius: 8px;
		margin-bottom: 12px;
		.box {
			display: flex;
			justify-content: space-between;
			align-items: center;
			flex: 1;

			.content_box {

				.content {
					display: flex;
					align-items: center;

					.name {
						font-size: 20px;
						margin-bottom: 5px;
					}
				}
			}
		}
	}
</style>